<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />   
        <title>Welcome to Design Zone......</title>
        <link rel="stylesheet" type="text/css" href="../../scripts/ext/resources/css/ext-all.css" />
        <link rel="stylesheet" type="text/css" href="../../styles/dzbase.css" />
        <script type="text/javascript" src="../../scripts/ext/adapter/ext-base.js">
        </script>
        <script type="text/javascript" src="../../scripts/ext/ext-all.js">
        </script>
        <script type="text/javascript" src="../../scripts/i18nMessage.js">
        </script>
        <script type="text/javascript" src="../../scripts/utils.js">
        </script>
        <script type="text/javascript">
        	var fcMessage = new i18nMessage('../../servlet/I18nMessageServlet?keyPrefix=ui.factory');
            var message = new i18nMessage('../../servlet/I18nMessageServlet?keyPrefix=message');
			
			var ctYesnoXmlLoader = new xmlLoader('../../servlet/CodeTableServlet?name=CtYesno');
			var ctProductFamilyXmlLoader = new xmlLoader('../../servlet/CodeTableServlet?name=CtFactoryType');
			
			var ctYesnoStore = new Ext.data.Store({
                reader: new Ext.data.XmlReader({
                    record: 'item',
                    id: 'code',
                    totalRecords: 'itemTotal'
                }, ['code', 'description']),
                data: ctYesnoXmlLoader.getXml()
            });
			var ctProductFamilyStore = new Ext.data.Store({
                reader: new Ext.data.XmlReader({
                    record: 'item',
                    id: 'code',
                    totalRecords: 'itemTotal'
                }, ['code', 'description']),
                data: ctProductFamilyXmlLoader.getXml()
            });
			
			var hasLoomCombo = new Ext.form.ComboBox({
                fieldLabel: fcMessage.get('ui.factory.hasloom'),
                id: 'hasLoom',
                name: 'hasLoom',
                editable: false,
                store: ctYesnoStore,
                valueField: 'code',
                displayField: 'description',
                triggerAction: 'all',
				anchor: '90%',
                emptyText: message.get('message.combo.pleaseselect'),
                selectOnFocus: true,
                mode: 'local'
            });
			var hasKnittingCombo = new Ext.form.ComboBox({
                fieldLabel: fcMessage.get('ui.factory.hasknitting'),
                id: 'hasKnitting',
                name: 'hasKnitting',
                editable: false,
                store: ctYesnoStore,
                valueField: 'code',
                displayField: 'description',
                triggerAction: 'all',
				anchor: '90%',
                emptyText: message.get('message.combo.pleaseselect'),
                selectOnFocus: true,
                mode: 'local'
            });
			var hasElectronicCombo = new Ext.form.ComboBox({
                fieldLabel: fcMessage.get('ui.factory.haselectronic'),
                id: 'hasElectronic',
                name: 'hasElectronic',
                editable: false,
                store: ctYesnoStore,
                valueField: 'code',
                displayField: 'description',
                triggerAction: 'all',
				anchor: '90%',
                emptyText: message.get('message.combo.pleaseselect'),
                selectOnFocus: true,
                mode: 'local'
            });
			var hasIntarsiaCombo = new Ext.form.ComboBox({
                fieldLabel: fcMessage.get('ui.factory.hasintarsia'),
                id: 'hasIntarsia',
                name: 'hasIntarsia',
                editable: false,
                store: ctYesnoStore,
                valueField: 'code',
                displayField: 'description',
                triggerAction: 'all',
				anchor: '90%',
                emptyText: message.get('message.combo.pleaseselect'),
                selectOnFocus: true,
                mode: 'local'
            });
            
            var ctProductFamilyCombo = new Ext.form.ComboBox({
                fieldLabel: fcMessage.get('ui.factory.type'),
                id: 'ctFactoryType',
                name: 'ctFactoryType',
                allowBlank: false,
                blankText: message.get('message.edit.noblank'),
                valueField: 'code',
                typeAhead: true,
                store: ctProductFamilyStore,
                displayField: 'description',
                forceSelection: true,
                triggerAction: 'all',
				anchor: '80%',
				width: '80%',
                emptyText: message.get('message.combo.pleaseselect'),
                selectOnFocus: true,
                mode: 'local',
				listeners: {
					select: {
						fn: function (thisComb, record,index){
							//alert(thisComb.getValue());
							if(thisComb.getValue() == '01'){
								//Ext.getCmp('spiningSet').collapse();
								Ext.getCmp('spiningSet').expand();
								
								Ext.getCmp('pullSet').collapse();
								Ext.getCmp('knittingSet').collapse();
								Ext.getCmp('accessorySet').collapse();
							}else if(thisComb.getValue() == '03'){
								Ext.getCmp('pullSet').expand();
								
								Ext.getCmp('spiningSet').collapse();
								Ext.getCmp('knittingSet').collapse();
								Ext.getCmp('accessorySet').collapse();
							}else if(thisComb.getValue() == '04'){
								Ext.getCmp('knittingSet').expand();
								
								Ext.getCmp('spiningSet').collapse();
								Ext.getCmp('pullSet').collapse();
								Ext.getCmp('accessorySet').collapse();
							}else if(thisComb.getValue() == '05'){
								Ext.getCmp('accessorySet').expand();
								
								Ext.getCmp('spiningSet').collapse();
								Ext.getCmp('pullSet').collapse();
								Ext.getCmp('knittingSet').collapse();
							}else{
								Ext.getCmp('spiningSet').collapse();
								Ext.getCmp('spiningSet').collapse();
								Ext.getCmp('pullSet').collapse();
								Ext.getCmp('knittingSet').collapse();
							}
						}
					}
				}
            });
            
            var copyAddress = function(){
            	Ext.getCmp('commercialContactCN').setValue(Ext.getCmp('factoryContactCN').getValue());
            	Ext.getCmp('commercialContactEN').setValue(Ext.getCmp('factoryContactEN').getValue());
            	Ext.getCmp('commercialEmail').setValue(Ext.getCmp('factoryEmail').getValue());
            	Ext.getCmp('addressCommercialCN').setValue(Ext.getCmp('addressFactoryCN').getValue());
            	Ext.getCmp('addressCommercialEN').setValue(Ext.getCmp('addressFactoryEN').getValue());
            	Ext.getCmp('commercialPhone').setValue(Ext.getCmp('factoryPhone').getValue());
            	Ext.getCmp('commercialFax').setValue(Ext.getCmp('factoryFax').getValue());
            }
            Ext.onReady(function(){
                Ext.QuickTips.init();
                
                Ext.form.Field.prototype.msgTarget = 'side';
                
                var idValue = getPrarmeterValue(window.location, 'id');
                var startPage = getPrarmeterValue(window.location, 'startPage');
                var messageForm = new Ext.FormPanel({
                    labelAlign: 'left',
                    labelWidth: 120, // label settings here cascade unless overridden
                    url: '../../servlet/BiFactoryServlet?action=1',
                    frame: true,
                    reader: new Ext.data.XmlReader({
                        record: 'item'
                    }, [{
                        name: 'id',
                        mapping: 'id'
                    }, {
                        name: 'nameCN',
                        mapping: 'nameCN'
                    }, {
                        name: 'nameEN',
                        mapping: 'nameEN'
                    }, {
                        name: 'departmentCN',
                        mapping: 'departmentCN'
                    }, {
                        name: 'departmentEN',
                        mapping: 'departmentEN'
                    }, {
                        name: 'addressCommercialCN',
                        mapping: 'addressCommercialCN'
                    }, {
                        name: 'addressCommercialEN',
                        mapping: 'addressCommercialEN'
                    }, {
                        name: 'commercialContactCN',
                        mapping: 'commercialContactCN'
                    }, {
                        name: 'commercialContactEN',
                        mapping: 'commercialContactEN'
                    }, {
                        name: 'commercialPhone',
                        mapping: 'commercialPhone'
                    }, {
                        name: 'commercialEmail',
                        mapping: 'commercialEmail'
                    }, {
                        name: 'commercialFax',
                        mapping: 'commercialFax'
                    }, {
                        name: 'addressFactoryCN',
                        mapping: 'addressFactoryCN'
                    }, {
                        name: 'addressFactoryEN',
                        mapping: 'addressFactoryEN'
                    }, {
                        name: 'factoryContactCN',
                        mapping: 'factoryContactCN'
                    }, {
                        name: 'factoryContactEN',
                        mapping: 'factoryContactEN'
                    }, {
                        name: 'factoryPhone',
                        mapping: 'factoryPhone'
                    }, {
                        name: 'factoryEmail',
                        mapping: 'factoryEmail'
                    }, {
                        name: 'factoryFax',
                        mapping: 'factoryFax'
                    }, {
                        name: 'ctFactoryType',
                        mapping: 'ctFactoryType'
                    }, {
                        name: 'hasLoom',
                        mapping: 'hasLoom'
                    }, {
                        name: 'loomJauge',
                        mapping: 'loomJauge'
                    }, {
                        name: 'loomQuality',
                        mapping: 'loomQuality'
                    }, {
                        name: 'loomLabour',
                        mapping: 'loomLabour'
                    }, {
                        name: 'hasKnitting',
                        mapping: 'hasKnitting'
                    }, {
                        name: 'knittingJauge',
                        mapping: 'knittingJauge'
                    }, {
                        name: 'knittingQuality',
                        mapping: 'knittingQuality'
                    }, {
                        name: 'knittingLabour',
                        mapping: 'knittingLabour'
                    }, {
                        name: 'hasElectronic',
                        mapping: 'hasElectronic'
                    }, {
                        name: 'electronicJauge',
                        mapping: 'electronicJauge'
                    }, {
                        name: 'electronicQuality',
                        mapping: 'electronicQuality'
                    }, {
                        name: 'electronicLabour',
                        mapping: 'electronicLabour'
                    }, {
                        name: 'hasIntarsia',
                        mapping: 'hasIntarsia'
                    }, {
                        name: 'intarsiaJauge',
                        mapping: 'intarsiaJauge'
                    }, {
                        name: 'intarsiaQuality',
                        mapping: 'intarsiaQuality'
                    }, {
                        name: 'intarsiaLabour',
                        mapping: 'intarsiaLabour'
                    }, {
                        name: 'labour',
                        mapping: 'labour'
                    },
					
					{
                        name: 'isCarded',
                        mapping: 'isCarded'
                    }, {
                        name: 'isSemiWorsted',
                        mapping: 'isSemiWorsted'
                    }, {
                        name: 'isWorsted',
                        mapping: 'isWorsted'
                    }, {
                        name: 'isSpinningOther1',
                        mapping: 'isSpinningOther1'
                    }, {
                        name: 'isSpinningOther2',
                        mapping: 'isSpinningOther2'
                    }, {
                        name: 'isSpinningOther3',
                        mapping: 'isSpinningOther3'
                    },
					
					{
                        name: 'isFibre',
                        mapping: 'isFibre'
                    }, {
                        name: 'isHank',
                        mapping: 'isHank'
                    }, {
                        name: 'isBobbin',
                        mapping: 'isBobbin'
                    }, {
                        name: 'isSpace',
                        mapping: 'isSpace'
                    }, {
                        name: 'isDyeingOther1',
                        mapping: 'isDyeingOther1'
                    }, {
                        name: 'isDyeingOther2',
                        mapping: 'isDyeingOther2'
                    }, {
                        name: 'isDyeingOther3',
                        mapping: 'isDyeingOther3'
                    },
					
					{
                        name: 'isRaw',
                        mapping: 'isRaw'
                    }, {
                        name: 'isSolid',
                        mapping: 'isSolid'
                    }, {
                        name: 'isChine',
                        mapping: 'isChine'
                    }, {
                        name: 'isTwisted',
                        mapping: 'isTwisted'
                    }, {
                        name: 'isFancy',
                        mapping: 'isFancy'
                    }, {
                        name: 'isYarnOther1',
                        mapping: 'isYarnOther1'
                    }, {
                        name: 'isYarnOther2',
                        mapping: 'isYarnOther2'
                    }, {
                        name: 'isYarnOther3',
                        mapping: 'isYarnOther3'
                    },
					
					{
                        name: 'isCotton',
                        mapping: 'isCotton'
                    }, {
                        name: 'isMercerisedCotton',
                        mapping: 'isMercerisedCotton'
                    }, {
                        name: 'isKapok',
                        mapping: 'isKapok'
                    }, {
                        name: 'isLinen',
                        mapping: 'isLinen'
                    }, {
                        name: 'isHemp',
                        mapping: 'isHemp'
                    }, {
                        name: 'isRamie',
                        mapping: 'isRamie'
                    }, {
                        name: 'isWool',
                        mapping: 'isWool'
                    }, {
                        name: 'isCashmere',
                        mapping: 'isCashmere'
                    },{
                        name: 'isYack',
                        mapping: 'isYack'
                    }, {
                        name: 'isCamel',
                        mapping: 'isCamel'
                    },{
                        name: 'isSilk',
                        mapping: 'isSilk'
                    }, {
                        name: 'isViscose',
                        mapping: 'isViscose'
                    },{
                        name: 'isModal',
                        mapping: 'isModal'
                    }, {
                        name: 'isTencel',
                        mapping: 'isTencel'
                    },{
                        name: 'isBamboo',
                        mapping: 'isBamboo'
                    }, {
                        name: 'isMilkFibre',
                        mapping: 'isMilkFibre'
                    },{
                        name: 'isAcetate',
                        mapping: 'isAcetate'
                    }, {
                        name: 'isTriacetate',
                        mapping: 'isTriacetate'
                    },{
                        name: 'isPolyamid',
                        mapping: 'isPolyamid'
                    }, {
                        name: 'isPolyester',
                        mapping: 'isPolyester'
                    },{
                        name: 'isAcrylic',
                        mapping: 'isAcrylic'
                    }, {
                        name: 'isMaterialOther1',
                        mapping: 'isMaterialOther1'
                    },{
                        name: 'isMaterialOther2',
                        mapping: 'isMaterialOther2'
                    },{
                        name: 'isMaterialOther3',
                        mapping: 'isMaterialOther3'
                    },{
                        name: 'isMaterialOther4',
                        mapping: 'isMaterialOther4'
                    },{
                        name: 'isMaterialOther5',
                        mapping: 'isMaterialOther5'
                    },
					
					{
                        name: 'isNeedle',
                        mapping: 'isNeedle'
                    },{
                        name: 'isHand',
                        mapping: 'isHand'
                    },{
                        name: 'isIntarsiaHand',
                        mapping: 'isIntarsiaHand'
                    },{
                        name: 'isElectronic',
                        mapping: 'isElectronic'
                    },{
                        name: 'isEquipmentOther1',
                        mapping: 'isEquipmentOther1'
                    },{
                        name: 'isEquipmentOther2',
                        mapping: 'isEquipmentOther2'
                    },{
                        name: 'isEquipmentOther3',
                        mapping: 'isEquipmentOther3'
                    },
					
					{
                        name: 'needleCapacity',
                        mapping: 'needleCapacity'
                    },
					
					{
                        name: 'isHandJauge3',
                        mapping: 'isHandJauge3'
                    },{
                        name: 'isHandJauge5',
                        mapping: 'isHandJauge5'
                    },{
                        name: 'isHandJauge7',
                        mapping: 'isHandJauge7'
                    },{
                        name: 'isHandJauge9',
                        mapping: 'isHandJauge9'
                    },{
                        name: 'isHandJauge12',
                        mapping: 'isHandJauge12'
                    },{
                        name: 'isHandJauge14',
                        mapping: 'isHandJauge14'
                    },{
                        name: 'isHandJauge16',
                        mapping: 'isHandJauge16'
                    },{
                        name: 'isHandJauge18',
                        mapping: 'isHandJauge18'
                    },
					
					{
                        name: 'handJauge3Capacity',
                        mapping: 'handJauge3Capacity'
                    },{
                        name: 'handJauge5Capacity',
                        mapping: 'handJauge5Capacity'
                    },{
                        name: 'handJauge7Capacity',
                        mapping: 'handJauge7Capacity'
                    },{
                        name: 'handJauge9Capacity',
                        mapping: 'handJauge9Capacity'
                    },{
                        name: 'handJauge12Capacity',
                        mapping: 'handJauge12Capacity'
                    },{
                        name: 'handJauge14Capacity',
                        mapping: 'handJauge14Capacity'
                    },{
                        name: 'handJauge16Capacity',
                        mapping: 'handJauge16Capacity'
                    },{
                        name: 'handJauge18Capacity',
                        mapping: 'handJauge18Capacity'
                    },
					
					{
                        name: 'isIntarsiaHandJauge3',
                        mapping: 'isIntarsiaHandJauge3'
                    },{
                        name: 'isIntarsiaHandJauge5',
                        mapping: 'isIntarsiaHandJauge5'
                    },{
                        name: 'isIntarsiaHandJauge7',
                        mapping: 'isIntarsiaHandJauge7'
                    },{
                        name: 'isIntarsiaHandJauge9',
                        mapping: 'isIntarsiaHandJauge9'
                    },{
                        name: 'isIntarsiaHandJauge12',
                        mapping: 'isIntarsiaHandJauge12'
                    },{
                        name: 'isIntarsiaHandJauge14',
                        mapping: 'isIntarsiaHandJauge14'
                    },{
                        name: 'isIntarsiaHandJauge16',
                        mapping: 'isIntarsiaHandJauge16'
                    },{
                        name: 'isIntarsiaHandJauge18',
                        mapping: 'isIntarsiaHandJauge18'
                    },
					
					{
                        name: 'intarsiaHandJauge3Capacity',
                        mapping: 'intarsiaHandJauge3Capacity'
                    },{
                        name: 'intarsiaHandJauge5Capacity',
                        mapping: 'intarsiaHandJauge5Capacity'
                    },{
                        name: 'intarsiaHandJauge7Capacity',
                        mapping: 'intarsiaHandJauge7Capacity'
                    },{
                        name: 'intarsiaHandJauge9Capacity',
                        mapping: 'intarsiaHandJauge9Capacity'
                    },{
                        name: 'intarsiaHandJauge12Capacity',
                        mapping: 'intarsiaHandJauge12Capacity'
                    },{
                        name: 'intarsiaHandJauge14Capacity',
                        mapping: 'intarsiaHandJauge14Capacity'
                    },{
                        name: 'intarsiaHandJauge16Capacity',
                        mapping: 'intarsiaHandJauge16Capacity'
                    },{
                        name: 'intarsiaHandJauge18Capacity',
                        mapping: 'intarsiaHandJauge18Capacity'
                    },
					
					{
                        name: 'isElectronicJauge3',
                        mapping: 'isElectronicJauge3'
                    },{
                        name: 'isElectronicJauge5',
                        mapping: 'isElectronicJauge5'
                    },{
                        name: 'isElectronicJauge7',
                        mapping: 'isElectronicJauge7'
                    },{
                        name: 'isElectronicJauge9',
                        mapping: 'isElectronicJauge9'
                    },{
                        name: 'isElectronicJauge12',
                        mapping: 'isElectronicJauge12'
                    },{
                        name: 'isElectronicJauge14',
                        mapping: 'isElectronicJauge14'
                    },{
                        name: 'isElectronicJauge16',
                        mapping: 'isElectronicJauge16'
                    },{
                        name: 'isElectronicJauge18',
                        mapping: 'isElectronicJauge18'
                    },
					
					{
                        name: 'electronicJauge3Capacity',
                        mapping: 'electronicJauge3Capacity'
                    },{
                        name: 'electronicJauge5Capacity',
                        mapping: 'electronicJauge5Capacity'
                    },{
                        name: 'electronicJauge7Capacity',
                        mapping: 'electronicJauge7Capacity'
                    },{
                        name: 'electronicJauge9Capacity',
                        mapping: 'electronicJauge9Capacity'
                    },{
                        name: 'electronicJauge12Capacity',
                        mapping: 'electronicJauge12Capacity'
                    },{
                        name: 'electronicJauge14Capacity',
                        mapping: 'electronicJauge14Capacity'
                    },{
                        name: 'electronicJauge16Capacity',
                        mapping: 'electronicJauge16Capacity'
                    },{
                        name: 'electronicJauge18Capacity',
                        mapping: 'electronicJauge18Capacity'
                    },
					
					{
                        name: 'isRemeshing',
                        mapping: 'isRemeshing'
                    },{
                        name: 'isFulling',
                        mapping: 'isFulling'
                    },{
                        name: 'isIroning',
                        mapping: 'isIroning'
                    },{
                        name: 'isQualityControl',
                        mapping: 'isQualityControl'
                    },{
                        name: 'isBlendProcessOther1',
                        mapping: 'isBlendProcessOther1'
                    },{
                        name: 'isBlendProcessOther2',
                        mapping: 'isBlendProcessOther2'
                    },
					
					{
                        name: 'remeshingPD',
                        mapping: 'remeshingPD'
                    },{
                        name: 'fullingPD',
                        mapping: 'fullingPD'
                    },{
                        name: 'ironingPD',
                        mapping: 'ironingPD'
                    },{
                        name: 'qualityControlPD',
                        mapping: 'qualityControlPD'
                    },{
                        name: 'blendProcessOther1PD',
                        mapping: 'blendProcessOther1PD'
                    },{
                        name: 'blendProcessOther2PD',
                        mapping: 'blendProcessOther2PD'
                    },
					
					{
                        name: 'isJersey',
                        mapping: 'isJersey'
                    },{
                        name: 'isFleece',
                        mapping: 'isFleece'
                    },{
                        name: 'isCoat',
                        mapping: 'isCoat'
                    },{
                        name: 'isInterlock',
                        mapping: 'isInterlock'
                    },{
                        name: 'isHuitSerrures',
                        mapping: 'isHuitSerrures'
                    },{
                        name: 'isSimpleJacquard',
                        mapping: 'isSimpleJacquard'
                    },{
                        name: 'isDoubleJacquard',
                        mapping: 'isDoubleJacquard'
                    },{
                        name: 'isKnittingFamilyOther1',
                        mapping: 'isKnittingFamilyOther1'
                    },{
                        name: 'isKnittingFamilyOther2',
                        mapping: 'isKnittingFamilyOther2'
                    },
					
					{
                        name: 'isJerseyJauge14',
                        mapping: 'isJerseyJauge14'
                    },{
                        name: 'isJerseyJauge16',
                        mapping: 'isJerseyJauge16'
                    },{
                        name: 'isJerseyJauge18',
                        mapping: 'isJerseyJauge18'
                    },{
                        name: 'isJerseyJauge20',
                        mapping: 'isJerseyJauge20'
                    },{
                        name: 'isJerseyJauge22',
                        mapping: 'isJerseyJauge22'
                    },{
                        name: 'isJerseyJauge24',
                        mapping: 'isJerseyJauge24'
                    },{
                        name: 'isJerseyJauge28',
                        mapping: 'isJerseyJauge28'
                    },{
                        name: 'isJerseyJauge32',
                        mapping: 'isJerseyJauge32'
                    },
					
					{
                        name: 'isFleeceJauge14',
                        mapping: 'isFleeceJauge14'
                    },{
                        name: 'isFleeceJauge16',
                        mapping: 'isFleeceJauge16'
                    },{
                        name: 'isFleeceJauge18',
                        mapping: 'isFleeceJauge18'
                    },{
                        name: 'isFleeceJauge20',
                        mapping: 'isFleeceJauge20'
                    },{
                        name: 'isFleeceJauge22',
                        mapping: 'isFleeceJauge22'
                    },{
                        name: 'isFleeceJauge24',
                        mapping: 'isFleeceJauge24'
                    },{
                        name: 'isFleeceJauge28',
                        mapping: 'isFleeceJauge28'
                    },{
                        name: 'isFleeceJauge32',
                        mapping: 'isFleeceJauge32'
                    },
					
					{
                        name: 'isButton',
                        mapping: 'isButton'
                    },{
                        name: 'isZip',
                        mapping: 'isZip'
                    },{
                        name: 'isEtiquette',
                        mapping: 'isEtiquette'
                    },{
                        name: 'isGriffes',
                        mapping: 'isGriffes'
                    },{
                        name: 'isHangtags',
                        mapping: 'isHangtags'
                    },{
                        name: 'isCuir',
                        mapping: 'isCuir'
                    },{
                        name: 'isAccessoryTypeOther1',
                        mapping: 'isAccessoryTypeOther1'
                    },{
                        name: 'isAccessoryTypeOther2',
                        mapping: 'isAccessoryTypeOther2'
                    },{
                        name: 'isAccessoryTypeOther3',
                        mapping: 'isAccessoryTypeOther3'
                    },
					
					{
                        name: 'comment',
                        mapping: 'comment'
                    }]),
                    title: fcMessage.get('ui.factory.edittitle'),
                    bodyStyle: 'padding:5px 5px 5px 5px',
                    defaultType: 'textfield',
                    
                    items: [{
                        fieldLabel: 'ID',
                        id: 'factoryId',
                        name: 'id',
                        xtype: 'hidden'
                    },{
						id: 'factoryNameSet',
						xtype: 'fieldset',
						collapsible: true,
						title: fcMessage.get('ui.factory.name'),
						autoHeight: true,
						items: [{
                            layout: 'column',
                            items: [{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									id: 'nameCN',
                                    name: 'nameCN',
                                    fieldLabel: fcMessage.get('ui.factory.name') + '(CN)',
                                    xtype: 'textfield',
                                    anchor: '80%',
									width: '90%',
                                    allowBlank: false,
                                    blankText: message.get('message.edit.noblank'),
                                    maxLength: 64
                                },{
									id: 'nameEN',
                                    name: 'nameEN',
                                    fieldLabel: fcMessage.get('ui.factory.name') + '(FR/EN)',
                                    xtype: 'textfield',
                                    anchor: '80%',
									width: '90%',
                                    blankText: message.get('message.edit.noblank'),
                                    maxLength: 64
                                },ctProductFamilyCombo]
							
							},{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									id: 'departmentCN',
                                    name: 'departmentCN',
                                    fieldLabel: fcMessage.get('ui.factory.department') + '(CN)',
                                    xtype: 'textfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
                                },{
									id: 'departmentEN',
                                    name: 'departmentEN',
                                    fieldLabel: fcMessage.get('ui.factory.department') + '(FR/EN)',
                                    xtype: 'textfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
                                }
//								,{
//									id: 'labour',
//                                    name: 'labour',
//                                    fieldLabel: message.get('message.edit.labour'),
//                                    xtype: 'numberfield',
//                                    anchor: '80%',
//									width: '90%',
//                                    maxLength: 64
//								}
								]
							}]
						}]
					},{
						xtype: 'fieldset',
						collapsible: true,
						title: fcMessage.get('ui.factory.factoryaddress'),
						autoHeight: true,
						items: [{
                            layout: 'column',
                            items: [{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									id: 'factoryContactCN',
                                    name: 'factoryContactCN',
                                    fieldLabel: message.get('message.edit.linkman') + '(CN)',
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 64
                                },{
									id: 'factoryContactEN',
                                    name: 'factoryContactEN',
                                    fieldLabel: message.get('message.edit.linkman') + '(FR/EN)',
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 64
                                },{
									id: 'factoryEmail',
                                    name: 'factoryEmail',
                                    fieldLabel: message.get('message.edit.email'),
                                    xtype: 'textfield',
									vtype: 'email',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 256
                                }, {
									id: 'addressFactoryCN',
                                    name: 'addressFactoryCN',
                                    fieldLabel: fcMessage.get('ui.factory.factoryaddress') + '(CN)',
                                    xtype: 'textarea',
                                    anchor: '86%',
									width: '90%',
                                    allowBlank: false,
                                    blankText: message.get('message.edit.noblank'),
                                    maxLength: 256
                                }]
							
							},{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									id: 'factoryPhone',
                                    name: 'factoryPhone',
                                    fieldLabel: message.get('message.edit.phone'),
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 64
                                },{
									id: 'factoryFax',
                                    name: 'factoryFax',
                                    fieldLabel: message.get('message.edit.fax'),
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 256
                                }, {
                                    html:'<div>&nbsp;</div><br/>'
                                },{
									id: 'addressFactoryEN',
                                    name: 'addressFactoryEN',
                                    fieldLabel: fcMessage.get('ui.factory.factoryaddress') + '(FR/EN)',
                                    xtype: 'textarea',
                                    anchor: '86%',
									width: '90%',
                                    blankText: message.get('message.edit.noblank'),
                                    maxLength: 256
                                }]
							}]
						}]
					},{
						xtype: 'fieldset',
						collapsible: true,
						title: fcMessage.get('ui.factory.commercialaddress'),
						autoHeight: true,
						items: [{
                            layout: 'column',
                            items: [{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									id: 'commercialContactCN',
                                    name: 'commercialContactCN',
                                    fieldLabel: message.get('message.edit.linkman') + '(CN)<img src="../../images/icons/paste_plain.png" style="cursor: hand;" onclick="copyAddress();">',
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 64
                                },{
									id: 'commercialContactEN',
                                    name: 'commercialContactEN',
                                    fieldLabel: message.get('message.edit.linkman') + '(FR/EN)',
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 64
                                },{
									id: 'commercialEmail',
                                    name: 'commercialEmail',
                                    fieldLabel: message.get('message.edit.email'),
                                    xtype: 'textfield',
									vtype: 'email',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 256
                                },{
									id: 'addressCommercialCN',
                                    name: 'addressCommercialCN',
                                    fieldLabel: fcMessage.get('ui.factory.commercialaddress') + '(CN)',
                                    xtype: 'textarea',
                                    anchor: '86%',
									width: '90%',
                                    allowBlank: false,
                                    blankText: message.get('message.edit.noblank'),
                                    maxLength: 256
                                }]
							
							},{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									id: 'commercialPhone',
                                    name: 'commercialPhone',
                                    fieldLabel: message.get('message.edit.phone'),
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 64
                                },{
									id: 'commercialFax',
                                    name: 'commercialFax',
                                    fieldLabel: message.get('message.edit.fax'),
                                    xtype: 'textfield',
                                    anchor: '86%',
									width: '90%',
                                    maxLength: 256
                                }, {
                                    html:'<div>&nbsp;</div><br/>'
                                },{
									id: 'addressCommercialEN',
                                    name: 'addressCommercialEN',
                                    fieldLabel: fcMessage.get('ui.factory.commercialaddress') + '(FR/EN)',
                                    xtype: 'textarea',
                                    anchor: '86%',
									width: '90%',
                                    blankText: message.get('message.edit.noblank'),
                                    maxLength: 256
                                }]
							}]
						}]
					},{
						id: 'spiningSet',
						xtype: 'fieldset',
						collapsible: true,
						collapsed: true,
						labelWidth: '10',
						title: fcMessage.get('ui.factory.spinning'),
						autoHeight: true,
						items: [{
                            layout: 'column',
                            items: [{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									html: '<div class="div"><label class="x-form-item-label"><b>' + fcMessage.get('ui.factory.tool') + '</b></label></div>'
                                },{
									id: 'isCarded',
									name: 'isCarded',
									fieldLabel: fcMessage.get('ui.factory.spinningtype'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.carded')
								},{
									id: 'isSemiWorsted',
									name: 'isSemiWorsted',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.semiworsted')
								},{
									id: 'isWorsted',
									name: 'isWorsted',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.worsted')
								},{
									id: 'isSpinningOther1',
									name: 'isSpinningOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.spinningother') + '1'
								},{
									id: 'isSpinningOther2',
									name: 'isSpinningOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.spinningother')+ '2'
								},{
									id: 'isSpinningOther3',
									name: 'isSpinningOther3',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.spinningother')+ '3'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
                                },{
									id: 'isFibre',
									name: 'isFibre',
									fieldLabel: fcMessage.get('ui.factory.dyeing'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.fibre')
								},{
									id: 'isHank',
									name: 'isHank',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.hank')
								},{
									id: 'isBobbin',
									name: 'isBobbin',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.bobbin')
								},{
									id: 'isSpace',
									name: 'isSpace',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.space')
								},{
									id: 'isDyeingOther1',
									name: 'isDyeingOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.dyeingother') + '1'
								},{
									id: 'isDyeingOther2',
									name: 'isDyeingOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.dyeingother') + '2'
								},{
									id: 'isDyeingOther3',
									name: 'isDyeingOther3',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.dyeingother') + '3'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
                                },{
									id: 'isRaw',
									name: 'isRaw',
									fieldLabel: fcMessage.get('ui.factory.yarn'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.raw')
								},{
									id: 'isSolid',
									name: 'isSolid',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.solid')
								},{
									id: 'isChine',
									name: 'isChine',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.chine')
								},{
									id: 'isTwisted',
									name: 'isTwisted',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.mouline')
								},{
									id: 'isFancy',
									name: 'isFancy',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.fancy')
								},{
									id: 'isYarnOther1',
									name: 'isYarnOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.yarnother') + '1'
								},{
									id: 'isYarnOther2',
									name: 'isYarnOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.yarnother') + '2'
								},{
									id: 'isYarnOther3',
									name: 'isYarnOther3',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.yarnother') + '3'
								}]
							
							},{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
                                },{
									id: 'isCotton',
									name: 'isCotton',
									fieldLabel: fcMessage.get('ui.factory.materialtype'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.cotton')
								},{
									id: 'isMercerisedCotton',
									name: 'isMercerisedCotton',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.mercerisedcotton')
								},{
									id: 'isKapok',
									name: 'isKapok',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.kapok')
								},{
									id: 'isLinen',
									name: 'isLinen',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.linen')
								},{
									id: 'isHemp',
									name: 'isHemp',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.hemp')
								},{
									id: 'isRamie',
									name: 'isRamie',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.ramie')
								},{
									id: 'isWool',
									name: 'isWool',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.wool')
								},{
									id: 'isCashmere',
									name: 'isCashmere',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.cashmere')
								},{
									id: 'isYack',
									name: 'isYack',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.yack')
								},{
									id: 'isCamel',
									name: 'isCamel',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.camel')
								},{
									id: 'isSilk',
									name: 'isSilk',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.silk')
								},{
									id: 'isViscose',
									name: 'isViscose',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.viscose')
								},{
									id: 'isModal',
									name: 'isModal',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.modal')
								},{
									id: 'isTencel',
									name: 'isTencel',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.tencel')
								},{
									id: 'isBamboo',
									name: 'isBamboo',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.bamboo')
								},{
									id: 'isMilkFibre',
									name: 'isMilkFibre',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.milkfibre')
								},{
									id: 'isAcetate',
									name: 'isAcetate',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.acetate')
								},{
									id: 'isTriacetate',
									name: 'isTriacetate',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.triacetate')
								},{
									id: 'isPolyamid',
									name: 'isPolyamid',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.polyamid')
								},{
									id: 'isPolyester',
									name: 'isPolyester',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.polyester')
								},{
									id: 'isAcrylic',
									name: 'isAcrylic',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.acrylic')
								},{
									id: 'isMaterialOther1',
									name: 'isMaterialOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.materialother') + '1'
								},{
									id: 'isMaterialOther2',
									name: 'isMaterialOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.materialother') + '2'
								},{
									id: 'isMaterialOther3',
									name: 'isMaterialOther3',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.materialother') + '3'
								},{
									id: 'isMaterialOther4',
									name: 'isMaterialOther4',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.materialother') + '4'
								},{
									id: 'isMaterialOther5',
									name: 'isMaterialOther5',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.materialother') + '5'
								}]
							}]
						}]
					},{
						id: 'pullSet',
						xtype: 'fieldset',
						collapsible: true,
						collapsed: true,
						labelWidth: '10',
						title: fcMessage.get('ui.factory.pull'),
						autoHeight: true,
						items: [{
							layout: 'column',
							items: [{
								columnWidth: .33,
								layout: 'form',
								items: [{
									html: '<div class="div"><label class="x-form-item-label"><b>' + fcMessage.get('ui.factory.tool') + '</b></label></div>'
								},{
									id: 'isNeedle',
									name: 'isNeedle',
									fieldLabel: fcMessage.get('ui.factory.equipment'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.needle')
								},{
									id: 'isHand',
									name: 'isHand',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.hand')
								},{
									id: 'isIntarsiaHand',
									name: 'isIntarsiaHand',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.intarsiahand')
								},{
									id: 'isElectronic',
									name: 'isElectronic',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.electronic')
								},{
									id: 'isEquipmentOther1',
									name: 'isEquipmentOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.equipmentother') + '1'
								},{
									id: 'isEquipmentOther2',
									name: 'isEquipmentOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.equipmentother') + '2'
								},{
									id: 'isEquipmentOther3',
									name: 'isEquipmentOther3',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.equipmentother') + '3'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>'+
									'<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>' +
									'<br/><br/><br/><br/><br/><br/></label></div>'
								},{
									id: 'isRemeshing',
									name: 'isRemeshing',
									fieldLabel: fcMessage.get('ui.factory.blendprocess'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.remeshing')
								},{
									id: 'isFulling',
									name: 'isFulling',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.fulling')
								},{
									id: 'isIroning',
									name: 'isIroning',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.ironing')
								},{
									id: 'isQualityControl',
									name: 'isQualityControl',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.qualitycontrol')
								},{
									id: 'isBlendProcessOther1',
									name: 'isBlendProcessOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.blendprocessother') + '1'
								},{
									id: 'isBlendProcessOther2',
									name: 'isBlendProcessOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.blendprocessother') + '2'
								}]
							
							},{
								columnWidth: .33,
								layout: 'form',
								items: [{
									html: '<div class="div"><label class="x-form-item-label"><b>' + fcMessage.get('ui.factory.jauge') + '</b></label></div>'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + fcMessage.get('ui.factory.needle') + ':</label></div>'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									id: 'isHandJauge3',
									name: 'isHandJauge3',
									fieldLabel: '&nbsp;&nbsp;&nbsp;&nbsp;' + fcMessage.get('ui.factory.hand'),
									xtype: 'checkbox',
									boxLabel: 3
								},{
									id: 'isHandJauge5',
									name: 'isHandJauge5',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 5
								},{
									id: 'isHandJauge7',
									name: 'isHandJauge7',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 7
								},{
									id: 'isHandJauge9',
									name: 'isHandJauge9',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 9
								},{
									id: 'isHandJauge12',
									name: 'isHandJauge12',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 12
								},{
									id: 'isHandJauge14',
									name: 'isHandJauge14',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 14
								},{
									id: 'isHandJauge16',
									name: 'isHandJauge16',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 16
								},{
									id: 'isHandJauge18',
									name: 'isHandJauge18',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 18
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									id: 'isIntarsiaHandJauge3',
									name: 'isIntarsiaHandJauge3',
									fieldLabel: '&nbsp;&nbsp;&nbsp;&nbsp;' + fcMessage.get('ui.factory.intarsiahand'),
									xtype: 'checkbox',
									boxLabel: 3
								},{
									id: 'isIntarsiaHandJauge5',
									name: 'isIntarsiaHandJauge5',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 5
								},{
									id: 'isIntarsiaHandJauge7',
									name: 'isIntarsiaHandJauge7',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 7
								},{
									id: 'isIntarsiaHandJauge9',
									name: 'isIntarsiaHandJauge9',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 9
								},{
									id: 'isIntarsiaHandJauge12',
									name: 'isIntarsiaHandJauge12',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 12
								},{
									id: 'isIntarsiaHandJauge14',
									name: 'isIntarsiaHandJauge14',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 14
								},{
									id: 'isIntarsiaHandJauge16',
									name: 'isIntarsiaHandJauge16',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 16
								},{
									id: 'isIntarsiaHandJauge18',
									name: 'isIntarsiaHandJauge18',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 18
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									id: 'isElectronicJauge3',
									name: 'isElectronicJauge3',
									fieldLabel: '&nbsp;&nbsp;&nbsp;&nbsp;' + fcMessage.get('ui.factory.electronic'),
									xtype: 'checkbox',
									boxLabel: 3
								},{
									id: 'isElectronicJauge5',
									name: 'isElectronicJauge5',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 5
								},{
									id: 'isElectronicJauge7',
									name: 'isElectronicJauge7',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 7
								},{
									id: 'isElectronicJauge9',
									name: 'isElectronicJauge9',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 9
								},{
									id: 'isElectronicJauge12',
									name: 'isElectronicJauge12',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 12
								},{
									id: 'isElectronicJauge14',
									name: 'isElectronicJauge14',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 14
								},{
									id: 'isElectronicJauge16',
									name: 'isElectronicJauge16',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 16
								},{
									id: 'isElectronicJauge18',
									name: 'isElectronicJauge18',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 18
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									id: 'remeshingPD',
                                    name: 'remeshingPD',
                                    fieldLabel: fcMessage.get('ui.factory.productionday'),
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'fullingPD',
                                    name: 'fullingPD',
                                    fieldLabel: fcMessage.get('ui.factory.productionday'),
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'ironingPD',
                                    name: 'ironingPD',
                                    fieldLabel: fcMessage.get('ui.factory.productionday'),
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'qualityControlPD',
                                    name: 'qualityControlPD',
                                    fieldLabel: fcMessage.get('ui.factory.productionday'),
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'blendProcessOther1PD',
                                    name: 'blendProcessOther1PD',
                                    fieldLabel: fcMessage.get('ui.factory.productionday'),
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'blendProcessOther2PD',
                                    name: 'blendProcessOther2PD',
                                    fieldLabel: fcMessage.get('ui.factory.productionday'),
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								}]
							},{
								columnWidth: .33,
								layout: 'form',
								items: [{
									html: '<div class="div"><label class="x-form-item-label"><b>' + fcMessage.get('ui.factory.capacity') + '</b></label></div>'
								},{
									id: 'needleCapacity',
                                    name: 'needleCapacity',
                                    fieldLabel: fcMessage.get('ui.factory.needlecapacity'),
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge3Capacity',
                                    name: 'handJauge3Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '3',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge5Capacity',
                                    name: 'handJauge5Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '5',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge7Capacity',
                                    name: 'handJauge7Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '7',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge9Capacity',
                                    name: 'handJauge9Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '9',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge12Capacity',
                                    name: 'handJauge12Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '12',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge14Capacity',
                                    name: 'handJauge14Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '14',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge16Capacity',
                                    name: 'handJauge16Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '16',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'handJauge18Capacity',
                                    name: 'handJauge18Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '18',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									id: 'intarsiaHandJauge3Capacity',
                                    name: 'intarsiaHandJauge3Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '3',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'intarsiaHandJauge5Capacity',
                                    name: 'intarsiaHandJauge5Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '5',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'intarsiaHandJauge7Capacity',
                                    name: 'intarsiaHandJauge7Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '7',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'intarsiaHandJauge9Capacity',
                                    name: 'intarsiaHandJauge9Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '9',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'intarsiaHandJauge12Capacity',
                                    name: 'intarsiaHandJauge12Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '12',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'intarsiaHandJauge14Capacity',
                                    name: 'intarsiaHandJauge14Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '14',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'intarsiaHandJauge16Capacity',
                                    name: 'intarsiaHandJauge16Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '16',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'intarsiaHandJauge18Capacity',
                                    name: 'intarsiaHandJauge18Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '18',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
								},{
									id: 'electronicJauge3Capacity',
                                    name: 'electronicJauge3Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '3',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'electronicJauge5Capacity',
                                    name: 'electronicJauge5Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '5',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'electronicJauge7Capacity',
                                    name: 'electronicJauge7Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '7',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'electronicJauge9Capacity',
                                    name: 'electronicJauge9Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '9',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'electronicJauge12Capacity',
                                    name: 'electronicJauge12Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '12',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'electronicJauge14Capacity',
                                    name: 'electronicJauge14Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '14',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'electronicJauge16Capacity',
                                    name: 'electronicJauge16Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '16',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								},{
									id: 'electronicJauge18Capacity',
                                    name: 'electronicJauge18Capacity',
                                    fieldLabel: fcMessage.get('ui.factory.capacity') + '18',
                                    xtype: 'numberfield',
                                    anchor: '80%',
									width: '90%',
                                    maxLength: 64
								}]
							}]
						}]
					},{
						id: 'knittingSet',
						xtype: 'fieldset',
						collapsible: true,
						collapsed: true,
						labelWidth: '10',
						title: fcMessage.get('ui.factory.knitting'),
						autoHeight: true,
						items: [{
                            layout: 'column',
                            items: [{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									html: '<div class="div"><label class="x-form-item-label"><b>' + fcMessage.get('ui.factory.tool') + '</b></label></div>'
                                },{
									id: 'isJersey',
									name: 'isJersey',
									fieldLabel: fcMessage.get('ui.factory.knittingfamily'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.jersey')
								},{
									id: 'isFleece',
									name: 'isFleece',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.fleece')
								},{
									id: 'isCoat',
									name: 'isCoat',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.coat')
								},{
									id: 'isInterlock',
									name: 'isInterlock',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.interlock')
								},{
									id: 'isHuitSerrures',
									name: 'isHuitSerrures',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.huitserrures')
								},{
									id: 'isSimpleJacquard',
									name: 'isSimpleJacquard',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.simplejacquard')
								},{
									id: 'isDoubleJacquard',
									name: 'isDoubleJacquard',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.doublejacquard')
								},{
									id: 'isKnittingFamilyOther1',
									name: 'isKnittingFamilyOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.knittingfamilyother') + '1'
								},{
									id: 'isKnittingFamilyOther2',
									name: 'isKnittingFamilyOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.knittingfamilyother') + '2'
								}]
							
							},{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									html: '<div class="div"><label class="x-form-item-label"><b>' + fcMessage.get('ui.factory.jauge') + '</b></label></div>'
                                },{
									id: 'isJerseyJauge14',
									name: 'isJerseyJauge14',
									fieldLabel: fcMessage.get('ui.factory.jersey'),
									xtype: 'checkbox',
									boxLabel: 14
								},{
									id: 'isJerseyJauge16',
									name: 'isJerseyJauge16',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 16
								},{
									id: 'isJerseyJauge18',
									name: 'isJerseyJauge18',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 18
								},{
									id: 'isJerseyJauge20',
									name: 'isJerseyJauge20',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 20
								},{
									id: 'isJerseyJauge22',
									name: 'isJerseyJauge22',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 22
								},{
									id: 'isJerseyJauge24',
									name: 'isJerseyJauge24',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 24
								},{
									id: 'isJerseyJauge28',
									name: 'isJerseyJauge28',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 28
								},{
									id: 'isJerseyJauge32',
									name: 'isJerseyJauge32',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 32
								},{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
                                },{
									id: 'isFleeceJauge14',
									name: 'isFleeceJauge14',
									fieldLabel: fcMessage.get('ui.factory.fleece'),
									xtype: 'checkbox',
									boxLabel: 14
								},{
									id: 'isFleeceJauge16',
									name: 'isFleeceJauge16',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 16
								},{
									id: 'isFleeceJauge18',
									name: 'isFleeceJauge18',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 18
								},{
									id: 'isFleeceJauge20',
									name: 'isFleeceJauge20',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 20
								},{
									id: 'isFleeceJauge22',
									name: 'isFleeceJauge22',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 22
								},{
									id: 'isFleeceJauge24',
									name: 'isFleeceJauge24',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 24
								},{
									id: 'isFleeceJauge28',
									name: 'isFleeceJauge28',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 28
								},{
									id: 'isFleeceJauge32',
									name: 'isFleeceJauge32',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: 32
								}]
							}]
						}]
					},{
						id: 'accessorySet',
						xtype: 'fieldset',
						collapsible: true,
						collapsed: true,
						labelWidth: '10',
						title: fcMessage.get('ui.factory.accessory'),
						autoHeight: true,
						items: [{
                            layout: 'column',
                            items: [{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									html: '<div class="div"><label class="x-form-item-label"><b>' + fcMessage.get('ui.factory.accessory') + '</b></label></div>'
                                },{
									id: 'isButton',
									name: 'isButton',
									fieldLabel: fcMessage.get('ui.factory.accessorytype'),
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.button')
								},{
									id: 'isZip',
									name: 'isZip',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.zip')
								},{
									id: 'isEtiquette',
									name: 'isEtiquette',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.etiquette')
								},{
									id: 'isGriffes',
									name: 'isGriffes',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.griffes')
								},{
									id: 'isHangtags',
									name: 'isHangtags',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.hangtag')
								},{
									id: 'isCuir',
									name: 'isCuir',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.cuir')
								},{
									id: 'isAccessoryTypeOther1',
									name: 'isAccessoryTypeOther1',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.accessorytypeother') + '1'
								},{
									id: 'isAccessoryTypeOther2',
									name: 'isAccessoryTypeOther2',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.accessorytypeother') + '2'
								},{
									id: 'isAccessoryTypeOther3',
									name: 'isAccessoryTypeOther3',
									fieldLabel: '',
									labelSeparator: '',
									xtype: 'checkbox',
									boxLabel: fcMessage.get('ui.factory.accessorytypeother') + '3'
								}]
							
							},{
                                columnWidth: .5,
                                layout: 'form',
                                items: [{
									html: '<div class="div"><label class="x-form-item-label">&nbsp;</label></div>'
                                }]
							}]
						}]
					},{
                        fieldLabel: message.get('message.edit.comment'),
                        name: 'comment',
                        allowBlank: true,
                        xtype: 'textarea',
						width: '90%',
                        blankText: message.get('message.edit.noblank'),
                        maxLength: 512,
                        maxLengthText: message.get('message.edit.toolong')
                    }],
                    
                    buttons: [{
                        text: message.get('message.edit.save'),
                        handler: function(){
                            if (messageForm.getForm().isValid()) {
                                
								//document.getElementsByName('hasLoom')[0].value = hasLoomCombo.getValue();
								//document.getElementsByName('hasKnitting')[0].value = hasKnittingCombo.getValue();
								//document.getElementsByName('hasElectronic')[0].value = hasElectronicCombo.getValue();
								//document.getElementsByName('hasIntarsia')[0].value = hasIntarsiaCombo.getValue();
								document.getElementsByName('ctFactoryType')[0].value = ctProductFamilyCombo.getValue();
								
                                messageForm.getForm().submit({
                                    method: 'post',
                                    success: function(form, action){
                                        //alert(form);
                                        messageTip.msg(message.get('message.tip'), message.get('message.edit.successful'));
                                        messageForm.getForm().reset();
                                        //messageForm.show();
                                    },
                                    failure: function(form, action){
                                        //alert(form);
                                        messageTip.msg(message.get('message.tip'), message.get('message.edit.unsuccessful'));
                                        //messageForm.show();
                                    }
                                });
                            }
                        }
                    },{
						text: message.get('message.edit.reset'),
						handler: function(){
							msItemForm.getForm().reset();
						}
					}, {
                        text: message.get('message.edit.cancel'),
                        handler: function(){
                            if (startPage != null) {
                                window.location = 'factory_list.html?startPage=' + startPage;
                            }
                            else {
                                window.location = 'factory_list.html';
                            }
                        }
                    }]
                });
				
				messageForm.render('factory');
	
		
				if(idValue != null){
					document.getElementById('factoryId').value = idValue;
					messageForm.getForm().load({
						url:'../../servlet/BiFactoryServlet?action=3&id=' + idValue, 
						waitMsg:Ext.LoadMask.prototype.msg,
						success: function(form, action){
							if(ctProductFamilyCombo.getValue() == '01'){
								Ext.getCmp('spiningSet').expand();
							}else if(ctProductFamilyCombo.getValue() == '03'){
								Ext.getCmp('pullSet').expand();
							}else if(ctProductFamilyCombo.getValue() == '04'){
								Ext.getCmp('knittingSet').expand();
							}else if(ctProductFamilyCombo.getValue() == '05'){
								Ext.getCmp('accessorySet').expand();
							}
						}
					});
				}
				//alert(document.getElementById('factoryNameSet'));
				//Ext.getCmp('factoryNameSet').collapse();
            });
        </script>
    </head>
    <body>
        <div id="factory"></div>
    </body>
</html>
